07b095121a4a3d338d3b7f4d38287207e474c1d8,test/org/sagebionetworks/bridge/services/ParticipantServiceTest.java,ParticipantServiceTest,createParticipantWithoutExternalIdAndNoValidation,#,565
Before Change
mockHealthCodeAndAccountRetrieval();
// These are the minimal credentials and they should work.
IdentifierHolder idHolder = participantService.createParticipant(STUDY, CALLER_ROLES, NO_ID_PARTICIPANT, false);
assertEquals(ID, idHolder.getIdentifier());
verifyNoMoreInteractions(externalIdService); // no ID, no calls to this service
}
After Change
STUDY.setExternalIdRequiredOnSignup(false);
mockHealthCodeAndAccountRetrieval();
participantService.createParticipant(STUDY, CALLER_ROLES, PARTICIPANT, false);
verifyNotSetAsReservation();
verifySetAsOption(EXTERNAL_ID);